package as3.main.pcxMenu 
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	/**
	 * 選單群組
	 * @author cain in liontravel 2010
	 */
	public class PcxItemGrup extends Sprite 
	{
		
		public function PcxItemGrup() 
		{ 
			
			setup();
		}
		private function setup():void
		{
			addEventListener(Event.ADDED_TO_STAGE, onADDED_TO_STAGE);
		}
		private function onADDED_TO_STAGE(e:Event):void 
		{
			addEventListener(Event.REMOVED_FROM_STAGE, onREMOVED_FROM_STAGE);
			init();
		}
		private function init():void
		{
			addEventListeners();
		}
		
		private function addEventListeners():void
		{
			
		}
		private function removeEventListeners():void
		{
			
		}
		private function onREMOVED_FROM_STAGE(e:Event):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, onADDED_TO_STAGE);
			removeEventListener(Event.REMOVED_FROM_STAGE, onREMOVED_FROM_STAGE);
			removeEventListeners();
		}
	}
	
}